﻿using NUnit.Framework;

namespace SharePoint.Orm.TestHelpers {
	public class XmlAssert {
		public static void AreEqual(string expected, string actual) {
			expected = FixString(expected);
			actual = FixString(actual);
			// todo replace with better xml compare
			Assert.AreEqual(expected, actual);
		}

		private static string FixString(string str) {
			str = str.Replace('"', '\'');
			str = str.Trim();
			return str;
		}
	}
}
